import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/system/message/list',
    method: 'post',
    data: data
  })
}
export function add(data) {
  return request({
    url: '/system/message/add',
    method: 'post',
    data: data
  })
}
export function edit(data) {
  return request({
    url: '/system/message/edit',
    method: 'post',
    data: data
  })
}
export function remove(data) {
  return request({
    url: '/system/message/delete',
    method: 'post',
    data: data
  })
}
export function getInfo(data) {
  return request({
    url: '/system/message/' + data,
    method: 'get'
  })
}

/**
 * @Author wssn
 * @Description 获取企业公告
 * @Date 18/4/2023 1:57 pm
 */
export function getNotice(data) {
  return request({
    url: '/system/notice/getIndexList/' + data,
    method: 'get'
  })
}

export function getNotificationNum(data) {
  return request({
    url: '/system/message/getMsgNum',
    method: 'post',
    data: data
  })
}

